#ifndef _INFOMATCOMMON_H
#define _INFOMATCOMMON_H

const int  k_default_timeout = 5000;

const char k_cplayer[] = "/tmp/cplayer";
const char k_aplayer[] = "aplay";
const char k_path_wav[] = "/media/sd/queue/wav/";
const char k_file_playlist[] = "/usr/infomat/playlist";
const char k_file_plu_spec[] = "/usr/infomat/plu.spec";
const char k_html_path[] = "/media/sd/htmls/";
const char k_movie_path[] = "/media/sd/movies/";
const char k_bg_poweroff[] = "/usr/infomat/images/bg_poweroff.png";
const char k_fifo_cplayer_in[] = "/tmp/cplayer_in";
const char k_fifo_cplayer_out[] ="/tmp/cplayer_out";

const int  k_layout_1  = 1;  	// WM1 + Video + HTML  		(A) 
const int  k_layout_2  = 2;     // WM1 + Video         		(B)  
const int  k_layout_3  = 3; 	// Video               		(C)
const int  k_layout_4  = 4;  	// WM1 + HTML          		(B)
const int  k_layout_5  = 5;  	// HTML                		(C)
                                // 6,7 has been dropped, not support any more
const int  k_layout_6  = 8;  	// QueueHead + Video/Html   (D)
const int  k_layout_7  = 9; 	// QueueHead + QueueWidget  (E)  Queue display
const int  k_layout_8  = 10;    // WM2 + QueueWidget+ Video (F)
const int  k_layout_9  = 11;    // WM2 + QueueWidget + HTML (F)
const int  k_layout_10 = 12;    // WM2 + QueueWidget        (G)

const char k_protocol_weight_measure 		= 0xE2;
const char k_protocol_f9            		= 0xF9;
const char k_protocol_f9_plu         		= 0x25;
const char k_protocol_f9_command     		= 0x26;
const char k_protocol_f9_queue 				= 0x27;
const char k_protocol_function_command   	= 0xE3;

const int k_protocol_cmd_init 	= 0x01;
const int k_protocol_cmd_reboot = 0x02;
const int k_protocol_cmd_default= 0x04;
const int k_protocol_cmd_update = 0x08;
const int k_protocol_cmd_halt   = 0x10;
const int k_protocol_cmd_volume = 0x20;
const int k_protocol_cmd_version= 0x40;
const int k_protocol_cmd_backlight = 0x80;

enum EFileType
{
	EHtml = 0,
	EPicture,
	EVideo
};

typedef struct ST_FILE_INFO
{
	int  	  	serial;
	QString   	file;
	EFileType   type;
	int       	timeout;
}STFileInfo;
#endif  /*  infomatcommon.h */
